package com.sasis.model;
// Generated 2007-7-30 17:05:55 by Hibernate Tools 3.1.0.beta4

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_TICKET"
 *     
 */

public class VipServiceTicket extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private String bookTicketMan;
    private Timestamp bookTicketTime;
    private BigDecimal bookTicketFee;
    private String bookTicketNumb;
    private String bookTicketRemark;
    private Integer bookTicketOperator;
    private Timestamp bookTicketOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceTicket() {
    }

    
    /** full constructor */
    public VipServiceTicket(Integer vipServiceSheetId, String bookTicketMan, Timestamp bookTicketTime, BigDecimal bookTicketFee, String bookTicketNumb, String bookTicketRemark, Integer bookTicketOperator, Timestamp bookTicketOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.bookTicketMan = bookTicketMan;
        this.bookTicketTime = bookTicketTime;
        this.bookTicketFee = bookTicketFee;
        this.bookTicketNumb = bookTicketNumb;
        this.bookTicketRemark = bookTicketRemark;
        this.bookTicketOperator = bookTicketOperator;
        this.bookTicketOperateDate = bookTicketOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_MAN"
     *             length="16"
     *         
     */

    public String getBookTicketMan() {
        return this.bookTicketMan;
    }
    
    public void setBookTicketMan(String bookTicketMan) {
        this.bookTicketMan = bookTicketMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_TIME"
     *             length="7"
     *         
     */

    public Timestamp getBookTicketTime() {
        return this.bookTicketTime;
    }
    
    public void setBookTicketTime(Timestamp bookTicketTime) {
        this.bookTicketTime = bookTicketTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_FEE"
     *             length="18"
     *         
     */

    public BigDecimal getBookTicketFee() {
        return this.bookTicketFee;
    }
    
    public void setBookTicketFee(BigDecimal bookTicketFee) {
        this.bookTicketFee = bookTicketFee;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_NUMB"
     *             length="16"
     *         
     */

    public String getBookTicketNumb() {
        return this.bookTicketNumb;
    }
    
    public void setBookTicketNumb(String bookTicketNumb) {
        this.bookTicketNumb = bookTicketNumb;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_REMARK"
     *             length="1024"
     *         
     */

    public String getBookTicketRemark() {
        return this.bookTicketRemark;
    }
    
    public void setBookTicketRemark(String bookTicketRemark) {
        this.bookTicketRemark = bookTicketRemark;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getBookTicketOperator() {
        return this.bookTicketOperator;
    }
    
    public void setBookTicketOperator(Integer bookTicketOperator) {
        this.bookTicketOperator = bookTicketOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_TICKET_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getBookTicketOperateDate() {
        return this.bookTicketOperateDate;
    }
    
    public void setBookTicketOperateDate(Timestamp bookTicketOperateDate) {
        this.bookTicketOperateDate = bookTicketOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("bookTicketMan").append("='").append(getBookTicketMan()).append("' ");			
      buffer.append("bookTicketTime").append("='").append(getBookTicketTime()).append("' ");			
      buffer.append("bookTicketFee").append("='").append(getBookTicketFee()).append("' ");			
      buffer.append("bookTicketNumb").append("='").append(getBookTicketNumb()).append("' ");			
      buffer.append("bookTicketRemark").append("='").append(getBookTicketRemark()).append("' ");			
      buffer.append("bookTicketOperator").append("='").append(getBookTicketOperator()).append("' ");			
      buffer.append("bookTicketOperateDate").append("='").append(getBookTicketOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceTicket) ) return false;
		 VipServiceTicket castOther = ( VipServiceTicket ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getBookTicketMan()==castOther.getBookTicketMan()) || ( this.getBookTicketMan()!=null && castOther.getBookTicketMan()!=null && this.getBookTicketMan().equals(castOther.getBookTicketMan()) ) )
 && ( (this.getBookTicketTime()==castOther.getBookTicketTime()) || ( this.getBookTicketTime()!=null && castOther.getBookTicketTime()!=null && this.getBookTicketTime().equals(castOther.getBookTicketTime()) ) )
 && ( (this.getBookTicketFee()==castOther.getBookTicketFee()) || ( this.getBookTicketFee()!=null && castOther.getBookTicketFee()!=null && this.getBookTicketFee().equals(castOther.getBookTicketFee()) ) )
 && ( (this.getBookTicketNumb()==castOther.getBookTicketNumb()) || ( this.getBookTicketNumb()!=null && castOther.getBookTicketNumb()!=null && this.getBookTicketNumb().equals(castOther.getBookTicketNumb()) ) )
 && ( (this.getBookTicketRemark()==castOther.getBookTicketRemark()) || ( this.getBookTicketRemark()!=null && castOther.getBookTicketRemark()!=null && this.getBookTicketRemark().equals(castOther.getBookTicketRemark()) ) )
 && ( (this.getBookTicketOperator()==castOther.getBookTicketOperator()) || ( this.getBookTicketOperator()!=null && castOther.getBookTicketOperator()!=null && this.getBookTicketOperator().equals(castOther.getBookTicketOperator()) ) )
 && ( (this.getBookTicketOperateDate()==castOther.getBookTicketOperateDate()) || ( this.getBookTicketOperateDate()!=null && castOther.getBookTicketOperateDate()!=null && this.getBookTicketOperateDate().equals(castOther.getBookTicketOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getBookTicketMan() == null ? 0 : this.getBookTicketMan().hashCode() );
         result = 37 * result + ( getBookTicketTime() == null ? 0 : this.getBookTicketTime().hashCode() );
         result = 37 * result + ( getBookTicketFee() == null ? 0 : this.getBookTicketFee().hashCode() );
         result = 37 * result + ( getBookTicketNumb() == null ? 0 : this.getBookTicketNumb().hashCode() );
         result = 37 * result + ( getBookTicketRemark() == null ? 0 : this.getBookTicketRemark().hashCode() );
         result = 37 * result + ( getBookTicketOperator() == null ? 0 : this.getBookTicketOperator().hashCode() );
         result = 37 * result + ( getBookTicketOperateDate() == null ? 0 : this.getBookTicketOperateDate().hashCode() );
         return result;
   }   





}
